package oop.day07;


public class TestRef {
    public static void main(String[] args) {
        //new Animal(); 抽象类不能new
        //Animal[] animals = new Animal[10];

        Master master = new Master();

        Dog dog = new Dog("小白",3,"白色");
        Dog dog1= new Dog("小黄",5,"黄色");
        master.feed(dog);
        master.feed(dog1);
        Fish fish = new Fish("小金",2,"金色");
        master.feed(fish);
        Chick chick = new Chick("小蓝",7,"蓝色");
        master.feed(chick);


    }
}
